#ifndef _COMMON_H_
#define _COMMON_H_

#include <stdio.h>
#include <stdlib.h>

#define ASSERT_UV_OK(r) \
    do { \
        if ((r) != 0) { \
            fprintf(stderr, \
                    "Assert failed in %s +%d: uv(%d) %s\n", \
                    __FILE__, __LINE__, (r), uv_strerror(r) \
                    ); \
            abort(); \
        } \
    } while(0);

#endif
